﻿@model IEnumerable<EmrDatastructure.EmrProblem>

@{
    ViewBag.Title = "Index";
}

<h2>Problems Index: @System.Web.HttpContext.Current.Session["PatientInfo"] </h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="data-table">
        <tr>
            <th class="actions edit">
                Edit
            </th>
            <th class="actions delete">
                Delete
            </th>            
            <th>
                Snomed_CT
            </th>
            <th>
                Description
            </th>
            <th>
                Status
            </th>
            <th>
                DateDiagnosed
            </th>
        </tr>

    @foreach (var item in Model) {
    
        <tr>
            <td class="actions edit">
                <a href='@Url.Action("Edit", new {id=item.Id})'><img src="@Url.Content("~/Content/Edit.png")" alt="Edit" /></a>
            </td>
            <td class="actions edit">
                <a href='@Url.Action("Delete", new {id=item.Id})'><img src="@Url.Content("~/Content/Delete.png")" alt="Edit" /></a>
            </td>
            <td>
                @item.Snomed_CT
            </td>
            <td>
                @item.Description
            </td>
            <td>
                @item.Status
            </td>
            <td>
                @item.DateDiagnosed.ToShortDateString()
            </td>
        </tr>
    
    }

    </table>

